package com.yl.module.base.entity;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
public class PureEntity<T> implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

  
    /**
     * fastjson 格式化实体bean
     */
    @Override
    public String toString() {
        return this.getClass().getSimpleName() + "=" + JSONObject
                .toJSONStringWithDateFormat(this, "yyyy-MM-dd HH:mm:ss" );
    }
}
